﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="UsersNotice.aspx.cs" Inherits="UsersNotice" Title="用户通知历史查询" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <h1 id="pagetitle" class="pagetitle">
        用户通知历史查询
    </h1>
    <div runat="server" id="divResult" class="divResult">
        <asp:Label ID="OperationResult" CssClass="result" runat="server" Text=""></asp:Label>
    </div>
    <script type="text/javascript">
    function InvokePop(url)
    {
        // to handle in IE 7.0          
        if (window.showModalDialog)
        {      
            retVal = window.showModalDialog(url ,'通知',"dialogHeight:500px;dialogWidth:860px;resizable:no;center:yes;");
        }
        // to handle in Firefox
        else
        {     
            retVal = window.open(url,'通知','height=768,width=1024,resizable=yes,modal=yes');
        }  
        //window.location.href=window.location.pathname+"?co_item_id="+co_item_id;     
        return true;
    }
    </script>
    <div class="InfoArea">
        <asp:Panel ID="SummaryPanel" runat="server" Width="100%">
            <asp:Repeater ID="Repeater" runat="server">
                <HeaderTemplate>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                </HeaderTemplate>
                <ItemTemplate>
                    <tr style="height: 24px;">
                        <td style="width: 200px;">
                            <img src="images/bg_bullet_half_1.gif"  alt=""/>
                            &nbsp;&nbsp;<span style='color: <%# (DataBinder.Eval(Container.DataItem, "Rec_Status").ToString()=="0")?"red":"black"%>;'>
                             <%# DataBinder.Eval(Container.DataItem, "publish_type_name")%>消息&nbsp;&nbsp;&nbsp;&nbsp;<%#DataBinder.Eval(Container.DataItem, "Create_Time")%>
                            </span>
                        </td>
                        <td style="color: #757575;">
                            <a href="#" onclick="javascript:InvokePop('noticedetail.aspx?RecID=<%#DataBinder.Eval(Container.DataItem, "Rec_ID")%>')"> 
                            <%# this.Substring(DataBinder.Eval(Container.DataItem, "Title").ToString()) %>
                            </a>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            <webdiyer:AspNetPager ID="AspNetPager" runat="server" ShowCustomInfoSection="Left"
                CustomInfoHTML="总记录数：%RecordCount%，总页数：%PageCount%，当前为第%CurrentPageIndex%页" CustomInfoTextAlign="left"
                CustomInfoStyle="padding-top:8px;font-weight:bold;" HorizontalAlign="right" FirstPageText="首页"
                LastPageText="尾页" NextPageText="下一页" OnPageChanged="AspNetPager_PageChanged"
                PrevPageText="上一页" ShowPageIndexBox="Always" SubmitButtonText="Go" TextAfterPageIndexBox="页"
                TextBeforePageIndexBox="转到" CssClass="anpager" CurrentPageButtonClass="cpb">
            </webdiyer:AspNetPager>
        </asp:Panel>
    </div>
</asp:Content>
